home *** CD-ROM | disk | FTP | other *** search
- property pStartTime
- global gPlayer
-
- on beginSprite
- if gPlayer.pDamage < 100 then
- sprite(420).member = member("Rank" & gPlayer.pRank)
- else
- sprite(420).member = member("Rank4")
- end if
- sprite(415).blend = 0
- sprite(421).blend = 0
- pStartTime = the ticks
- puppetSound(3, 0)
- puppetSound(5, "levelcompleteSound")
- end
-
- on enterFrame me
- gPlayer.update()
- t_Update(gPlayer.pLocation)
- e_Update(gPlayer.pLocation)
- pickup_Update(gPlayer.pLocation)
- p_Update()
- gfx_Update(gPlayer.pLocation)
- updateRanking()
- sendSprite(110, #update)
- if sprite(415).blend < 50 then
- sprite(415).blend = sprite(415).blend + 2
- sprite(421).blend = sprite(421).blend + 4
- end if
- end
-
- on exitFrame
- go(the frame)
- end
-
- on keyDown
- if (the key = SPACE) and (the ticks > (pStartTime + 180)) then
- pickup_ClearAllPickups()
- gfx_ClearAllEffects()
- go("InBetween")
- end if
- end
-